package cn.dceast.common.utils;

public class ErrorMessage {
	private String fieldName;
	private String message;
	
	public ErrorMessage(String fieldName, String message){
		this.fieldName = fieldName;
		this.message = message;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public static void main(String[] args) {
		String a = "wewe.xls";
		System.out.print(a.lastIndexOf("."));
		System.out.print(a.substring(0,a.lastIndexOf(".")));
 	}
}
